package com.recharge.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户登录日志
 * </p>
 *
 * @author Reagan
 * @since 2020-08-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user_login_log")
public class UserLoginLogEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;

    @TableField("username")
    private String username;

    @TableField("ip_address")
    private String ipAddress;

    @TableField("login_time")
    private Date loginTime;

    /**
     * 0.失败 1.成功
     */
    @TableField("status")
    private Integer status;


}
